﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace ch01
{
    public partial class Form12 : Form
    {
        public Form12()
        {
            InitializeComponent();
        }

        //定义单击按钮的方法
        public void Button_Click(object s,EventArgs e)
        {
            MessageBox.Show(((Button)s).Text);
        }
    }
}
